LZW Encoding in Genetic Algorithm
نویسنده
چکیده
To solve a problem using Genetic Algorithms (GAs), a solution must be encoded into a binary string. The length of the binary string represents the size of the problem. As the length of the binary string increases, the size of the search space also increases at an exponential rate. To reduce the search space, one approach is to use a compressed encoding chromosome. This paper presents a genetic algorithm, called LZWGA, that uses compressed chromosomes. An LZWGA chromosome must be decompressed using an LZW decompression algorithm before its fitness can be evaluated. By using compressed encoding, the search space is reduced dramatically. For one-million-bit problem, the search space of the original problem is 21000000 or about 9.90x10301029 points. When using a compressed encoding, the search space was reduced to 8.37x10166717 points. LZWGA can solve one-million-bit OneMax, RoyalRoad, and Trap functions. the specific type of crossover is introduced to preserve some constraints can beneficially reduce the search space (Chen & Smith, 1999). The result shows that the proposed crossover can find better solution for a flow shop scheduling problem. Another approach to reduce the search space is by using compressed encoding. Compressed GA employed compressed encoding chromosome using a format similar to run-length encoding (Suwannik, Kunasol, & Chongstitvatana, 2005). The result shows that Compressed GA uses 805 times less fitness evaluations than Simple GA when solving 128bit OneMax problem. In c2ga, the compressed encoding was combined with compact genetic algorithm (Watchanupaporn, Soonthornphisaj, & Suwannik, 2006). The performance of the c2ga DOI: 10.4018/jaec.2011100102 26 International Journal of Applied Evolutionary Computation, 2(4), 25-36, October-December 2011 Copyright © 2011, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited. is better than cGA (Harik, Lobo, & Goldberg, 1999) in OneMax and RoyalRoad problems. To use Compressed GA, an appropriate number of bits of the repetition times (the run length) has to be specified. If the number of bits is too low or too high the effectiveness of compression is suffered. To overcome this problem, Kunasol, Suwannik, and Chongstitvatana (2006) proposed LZWGA. LZWGA uses a compressed encoding that can be decompressed using Lempel-Ziv-Welch (LZW) decompression algorithm. The result shows that LZWGA outperforms Compressed GA for 2048-bit OneMax problem. LZWGA is used to solve one-million-bit OneMax, Royal Road, and Trap problems. The one-million bit problem has an enormous search space. The search space of this problem is 21000000 or 9.90x10301029 points. Solving the problem of this size using any canonical GA is not practical. Using LZWGA, the search space is reduced dramatically. LZWGA can solve one-million-bit OneMax problem in 18 minutes. This paper summarizes recent researches on LZWGA, which cover various aspects of the algorithm such as selection, crossover, and mutation. This paper is organized as follows. The next section describes LZWGA. The test problems are then explained. The results are reported on selection, crossover, and mutation respectively and a new genetic operator called Shift is described. The final sections provide discussion and conclusions. LZWGA The main difference between LZWGA and Simple GA is that a chromosome is in a compressed format. The LZWGA chromosome has to be decompressed before its fitness can be evaluated. The pseudo code of LZWGA is shown in Figure 1. The algorithm begins by creating the first generation of compressed chromosomes. Before evaluating the fitness of a chromosome, the compressed chromosome is decompressed using LZW Decompression algorithm. The fitness evaluation is performed on the uncompressed chromosome. After that, the new population is created to replace the old population. The algorithm repeats the process of decompression, fitness evaluation, and creating a new population until the termination criterion is met. The algorithm terminates when a solution is found or a maximum generation is reached. A. Creating the First Generation Unlike a canonical GA, a chromosome in LZWGA is encoded as integers. The chromosome in LZWGA is in a compressed format. Each integer is a code for an index of an entry in the dictionary. Chromosomes in the first generation are created as a random integer strings with the constraint that the ith integer of a chromosome must not have value greater than i+l. The first integer of the chromosome is either 0 or 1 because during the decompression, the dictionary is firstly initialized with 0 and 1. Figure 1. LZWGA pseudo code Algorithm LZWGA Z←create_first_generation () repeat P←decompress(Z) evaluate(P) Z←create_next_generation(Z) until is_terminate() A variable Z is the population of compressed chromosome. A variable P is the population of uncompressed binary chromosomes. 10 more pages are available in the full version of this document, which may be purchased using the "Add to Cart" button on the product's webpage: www.igi-global.com/article/lzw-encoding-geneticalgorithm/61142?camid=4v1 This title is available in InfoSci-Journals, InfoSci-Journal Disciplines Computer Science, Security, and Information Technology. Recommend this product to your librarian: www.igi-global.com/e-resources/libraryrecommendation/?id=2
منابع مشابه
LZW Chromosome Encoding in Estimation of Distribution Algorithms
Estimation of distribution algorithm (EDA) can solve more complicated problems than its predecessor (Genetic Algorithm). EDA uses various methods to probabilistically model a group of highly fit individuals. Calculating the model in sophisticated EDA is very time consuming. To reduce the model building time, the authors propose compressed chromosome encoding. A chromosome is encoded using a for...
متن کاملSelf-adapting Radar Video Echo Acquisition System based on LZW Algorithm
This paper presents a high-speed low-complexity Field Program Gate Array (FPGA) design and implementation of the lossless Lempel-Ziv-Welch (LZW) algorithm on Xilinx Virtex-E device family for selfadapting Radar video echo data acquisition Applications. A multi-channel self-adaptive variable sampling rate data acquisition system based on FPGA and I2C bus is introduced. By writing the frame data ...
متن کاملComparative Analysis of Lossless Image Compression Based On Row By Row Classifier and Various Encoding Schemes on Color Images
Lossless image compression is needed in many fields like medical imaging, telemetry, geophysics, remote sensing and other applications, which require exact replica of original image and loss of information is not tolerable. In this paper, a near lossless image compression algorithm based on row by row classifier with encoding schemes like Lempel Ziv Welch (LZW), Huffman and Run Length Encoding ...
متن کاملRedundant Reduced LZW (RRLZW) Technique of Lossless Data Compression
Technology is growing in every aspect but the basic needs to save the memory and time utilization still remains. Whenever we deal with any kind of data, we are bound to compress the data to minimize the space utilization. Data compression can be lossy or lossless. Some efficient lossless data compression techniques are Huffman coding, Run-length coding, LempelZiv-Welch (LZW) coding. Lempel–Ziv–...
متن کاملA Unifying Framework for Compressed Pattern Matching
We introduce a general framework which is suitable to capture an essence of compressed pattern matching according to various dictionary based compressions. The goal is to find all occurrences of a pattern in a text without decompression, which is one of the most active topics in string matching. Our framework includes such compression methods as Lempel-Ziv family, (LZ77, LZSS, LZ78, LZW), byte-...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- IJAEC
دوره 2 شماره
صفحات -
تاریخ انتشار 2011